s = '023456'

try:
    s[0] = '1'
except:
    print('字符串不能修改')
finally:
    print('结束了')